# -*- coding: utf-8 -*-
"""
社交互动 - URL配置
"""

from django.urls import path
from . import views

app_name = 'social'

urlpatterns = [
    # 评论相关API
    path('api/activities/<int:activity_id>/comments/', views.api_comments_list, name='api_comments_list'),
    path('api/activities/<int:activity_id>/comments/create/', views.api_comment_create, name='api_comment_create'),
    path('api/comments/<int:comment_id>/delete/', views.api_comment_delete, name='api_comment_delete'),
    path('api/comments/<int:comment_id>/like/', views.api_comment_like, name='api_comment_like'),
    path('api/comments/<int:comment_id>/unlike/', views.api_comment_unlike, name='api_comment_unlike'),
    
    # 活动点赞相关API
    path('api/activities/<int:activity_id>/like/', views.api_activity_like, name='api_activity_like'),
    path('api/activities/<int:activity_id>/unlike/', views.api_activity_unlike, name='api_activity_unlike'),
    path('api/activities/<int:activity_id>/like-status/', views.api_activity_like_status, name='api_activity_like_status'),
    
    # 评分相关API
    path('api/activities/<int:activity_id>/ratings/', views.api_ratings_list, name='api_ratings_list'),
    path('api/activities/<int:activity_id>/ratings/create/', views.api_rating_create, name='api_rating_create'),
]
